<template>
  <view>
    <view>这里是联系我们</view>
    <view @click="callPhone">联系电话：100000(点击拨打)</view>
    <view class="page-body">
      <view class="page-section page-section-gap">
        <map
          style="width: 100%; height: 300px"
          :longitude="longitude"
          :latitude="latitude"
          :markers="covers"
        >
        </map>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      id: 0, // 使用 marker点击事件 需要填写id
      title: "map",
      latitude: 39.909,
      longitude: 116.39742,
      covers: [
        {
          latitude: 39.909,
          longitude: 116.39742,
        },
        {
          latitude: 39.9,
          longitude: 116.39,
        },
      ],
    };
  },
  methods: {
    callPhone() {
      //拨打电话api
      uni.makePhoneCall({
        phoneNumber: "10000",
      });
    },
  },
};
</script>

<style></style>
